<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<link rel="stylesheet" type="text/css" href="estilos.css" />

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Banca Alecrim</title>
</head>
<f:view>
	<h:form>
		<body style="background-color: #aaaaaa">

		<jsp:include page="topoPagina.jsp" />
	
		<br />
		<br />

		<h:messages infoClass="mensagemInfo" errorClass="mensagemError" 
			layout="table" styleClass="mensagemErro" />
				
		<table width="30%" align="center" border="0" class="formulario">

			<caption>Acesso</caption>
			
			<tr>
				<th width="30%">Login:<h:outputText style="color: red"
					value="*"></h:outputText></th>
				<td><h:inputText value="#{loginMBean.login}" required="true"
					label="Login"></h:inputText></td>
			</tr>

			<tr>
				<th>Senha:<h:outputText style="color: red"
					value="*"></h:outputText></th>	
				<td><h:inputSecret value="#{loginMBean.password}" required="true"
					label="Senha" id="senha"></h:inputSecret></td>
			</tr>

			<tfoot>
				<tr>
					<td colspan="2"><h:commandButton value="Entrar"
						action="#{loginMBean.loginAction}"></h:commandButton></td>
				</tr>
			</tfoot>
		</table>

		<a href="cadastroUsuario.jsp">Cadastre-se</a>

		</body>
	</h:form>
</f:view>
</html>